/*
 * Entrepreneur.java
 * Team qq 2011
 */
package com.google.code.timetrail.backend;

/**
 * Entrepreneurs start with double the money of the other jobs, however, they
 * don't have any useful skills for the trail
 * 
 * @author Anuraag
 * @version 1.0
 */
public class Entrepreneur extends Person {
	/**
	 * the version ID of Entrepreneur, CHANGE IT if control gets incompatibly
	 * changed
	 **/
	private static final long serialVersionUID = 4030L;
	
	/** The money bonus the entrepreneur will recieve */
	private static final int MONEY_BOUNUS = 800;

	/** Amount of skill for Entrepreneur */
	private static final int ENTREPRENEUR_SKILL = 30;
	
	/**
	 * Gives the Entrepreneur more money
	 * 
	 * @param inv
	 *            the inventory the bonus goes to
	 */
	@Override
	public void initialBonus(Inventory inv) {
		super.initialBonus(inv);
		inv.addItem(MONEY_BOUNUS, inv.getMoney());
	}

	/**
	 * sets the Entrepeneur's skill set the skill are all 0, except for
	 * bargaining which is 50
	 */
	@Override
	public void intializeSkills() {
		final int[] skillSet = { 0, 0, ENTREPRENEUR_SKILL, 0 };
		super.setSkills(skillSet);
	}

	/**
	 * Provides a string representation of Entrepreneur
	 * 
	 * @return entrepreneur in string form
	 */
	@Override
	public String toString() {
		return super.toString() + " is an Entrepreneur";
	}
}
